# -*- coding: utf-8 -*-

# @version $Id: locks.py 2 2011-05-22 09:26:50Z idivein@gmail.com $

"""
 一个轻量的文件锁工具
 
  使用例子：
  >>>from bee.core.files import locks
  >>>f = open('./file','wb');
  >>>locks.lock(f, locks.LOCK_EX)
  >>>f.write('Bee')
  >>>f.close()
"""

